//
//  UITextField+CL.m
//  IntegralMall
//
//  Created by 朱跃龙 on 2017/9/26.
//  Copyright © 2017年 朱跃龙. All rights reserved.
//

#import "UITextField+CL.h"

@implementation UITextField (CL)

+ (UITextField *)addTextFieldWithFrame:(CGRect)frame AndStr:(NSString *)placeholder AndFont:(CGFloat)font AndTextColor:(UIColor *)color
{
    UITextField *textF=[[UITextField alloc]initWithFrame:frame];
    textF.userInteractionEnabled = YES;
    textF.textColor = color;
    textF.font = [UIFont systemFontOfSize:font * W];
    textF.placeholder=placeholder;
    return textF;
}

+ (UITextField *)addTextFieldWithPlaceholderStr:(NSString *)placeholder AndFont:(CGFloat)font
{
    UITextField *textF=[[UITextField alloc]init];
    textF.userInteractionEnabled = YES;
    textF.font = [UIFont systemFontOfSize:font];
    textF.placeholder=placeholder;
    return textF;
}

+ (UITextField *)addTextFieldWithFont:(CGFloat)font
{
    UITextField *textF=[[UITextField alloc]init];
    textF.userInteractionEnabled = YES;
    textF.font = [UIFont systemFontOfSize:font];
    return textF;
}

@end
